package com.zzyl.controller;

import com.zzyl.base.PageResponse;
import com.zzyl.base.ResponseResult;
import com.zzyl.service.NursingProjectService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/nursing_project")
@Api(tags = "分页查询接口")
public class Nursing_ProjectController extends BaseController {
    @Autowired
    private NursingProjectService nursingProjectService;
@ApiOperation( "分页查询方法")
    @GetMapping
    public ResponseResult selectById(@ApiParam("分页查询参数") String name,Integer status,Integer pageNum, Integer pageSize){
        PageResponse pageResponse =  nursingProjectService.selectById(name,status,pageNum, pageSize);
        return success(pageResponse);
    }
}
